/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-07-05     WangJing       the first version
 */
#ifndef SOFTWARE_PLATFORM2D_H_
#define SOFTWARE_PLATFORM2D_H_

#include "step_motor.h"
#include "user_thread.h"
#include <math.h>

#define X_COUNT 4
#define Y_COUNT 3

typedef struct{
    float x;
    float y;
}Loca2D_t;

typedef struct{
    int x;
    int y;
}List2D_t;

#define PLATFORM2D_DELAY(totalTime) rt_thread_delay(totalTime)

void platform2D_init(void);
void platform2D_goList(int x,int y,uint16_t speed);
Loca2D_t platform2D_goLoca(Loca2D_t loca, uint16_t speed);
void platform2D_MedicineLoca(int loca);

#endif /* SOFTWARE_PLATFORM2D_H_ */
